package com.lhh.springcommon.config;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * redisson配置文件
 * @author 李厚航
 */
@Configuration
@ConfigurationProperties(prefix = "redisson")
@Data
public class RedissonConfigurationProperties{

    private SingleServerConfig singleServerConfig;

    @Data
    public static class SingleServerConfig{
        private String address = "redis://127.0.0.1:6379";
        private int subscriptionConnectionMinimumIdleSize = 1;
        private int subscriptionConnectionPoolSize = 50;
        private int connectionMinimumIdleSize = 24;
        private int connectionPoolSize = 64;
        private int database = 0;
        private long dnsMonitoringInterval = 5000L;
        private int idleConnectionTimeout = 10000;
        private int connectTimeout = 10000;
    }

}
